0e5fe7e9148755f238634f0b1fcc008a679567be,osgi/service/src/main/java/org/jboss/as/osgi/service/PersistentBundlesIntegration.java,InitialDeploymentTracker,InitialDeploymentTracker,#OperationContext#Activation#,108
Before Change
public InitialDeploymentTracker(final OperationContext context, final Activation activationMode) {
final ServiceTarget serviceTarget = context.getServiceTarget();
final PersistentBundlesComplete installComplete = new PersistentBundlesComplete() {
@Override
protected boolean allServicesAdded(Set<ServiceName> trackedServices) {
synchronized (bundleInstallServices) {
return deploymentInstallComplete.get() && bundleInstallServices.size() == trackedServices.size();
}
}
};
ServiceBuilder<Void> installCompleteBuilder = installComplete.install(serviceTarget);
installCompleteBuilder.setInitialMode(activationMode == Activation.EAGER ? Mode.ACTIVE : Mode.ON_DEMAND);
deploymentNames = getDeploymentNames(context);
deploymentCount = new AtomicInteger(deploymentNames.size());
if (deploymentCount.get() == 0) {
// Install the INITIAL_DEPLOYMENTS_COMPLETE service
initialDeploymentsComplete(serviceTarget);
// Install the PERSISTENT_BUNDLES_COMPLETE service
installCompleteBuilder.install();
return;
}
After Change
public InitialDeploymentTracker(OperationContext context, ServiceVerificationHandler verificationHandler) {
serviceTarget = context.getServiceTarget();
deploymentNames = getDeploymentNames(context);
// Get the INSTALL phase service names